Sha256: a552987d69d4444569ba09d46ef2783225b8ef3c677fe68f5d0107da66de313a
Contents?: true
Size: 745 Bytes
Versions: 281
Compression:
Stored size: 745 Bytes
Contents
using Xunit; public class RobotNameTest { private readonly Robot robot = new Robot(); [Fact] public void Robot_has_a_name() { Assert.Matches(@"[A-Z]{2}\d{3}", robot.Name); } [Fact(Skip = "Remove to run test")] public void Name_is_the_same_each_time() { Assert.Equal(robot.Name, robot.Name); } [Fact(Skip = "Remove to run test")] public void Different_robots_have_different_names() { var robot2 = new Robot(); Assert.NotEqual(robot2.Name, robot.Name); } [Fact(Skip = "Remove to run test")] public void Can_reset_the_name() { var originalName = robot.Name; robot.Reset(); Assert.NotEqual(originalName, robot.Name); } }
Version data entries
281 entries across 281 versions & 1 rubygems