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

Version Path
trackler-2.2.1.119 tracks/csharp/exercises/robot-name/RobotNameTest.cs
trackler-2.2.1.118 tracks/csharp/exercises/robot-name/RobotNameTest.cs
trackler-2.2.1.117 tracks/csharp/exercises/robot-name/RobotNameTest.cs
trackler-2.2.1.116 tracks/csharp/exercises/robot-name/RobotNameTest.cs
trackler-2.2.1.115 tracks/csharp/exercises/robot-name/RobotNameTest.cs
trackler-2.2.1.114 tracks/csharp/exercises/robot-name/RobotNameTest.cs
trackler-2.2.1.113 tracks/csharp/exercises/robot-name/RobotNameTest.cs
trackler-2.2.1.111 tracks/csharp/exercises/robot-name/RobotNameTest.cs
trackler-2.2.1.110 tracks/csharp/exercises/robot-name/RobotNameTest.cs
trackler-2.2.1.109 tracks/csharp/exercises/robot-name/RobotNameTest.cs
trackler-2.2.1.108 tracks/csharp/exercises/robot-name/RobotNameTest.cs
trackler-2.2.1.107 tracks/csharp/exercises/robot-name/RobotNameTest.cs
trackler-2.2.1.106 tracks/csharp/exercises/robot-name/RobotNameTest.cs
trackler-2.2.1.105 tracks/csharp/exercises/robot-name/RobotNameTest.cs
trackler-2.2.1.104 tracks/csharp/exercises/robot-name/RobotNameTest.cs
trackler-2.2.1.103 tracks/csharp/exercises/robot-name/RobotNameTest.cs
trackler-2.2.1.102 tracks/csharp/exercises/robot-name/RobotNameTest.cs
trackler-2.2.1.101 tracks/csharp/exercises/robot-name/RobotNameTest.cs
trackler-2.2.1.100 tracks/csharp/exercises/robot-name/RobotNameTest.cs
trackler-2.2.1.99 tracks/csharp/exercises/robot-name/RobotNameTest.cs