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.180 tracks/csharp/exercises/robot-name/RobotNameTest.cs
trackler-2.2.1.179 tracks/csharp/exercises/robot-name/RobotNameTest.cs
trackler-2.2.1.178 tracks/csharp/exercises/robot-name/RobotNameTest.cs
trackler-2.2.1.177 tracks/csharp/exercises/robot-name/RobotNameTest.cs
trackler-2.2.1.176 tracks/csharp/exercises/robot-name/RobotNameTest.cs
trackler-2.2.1.175 tracks/csharp/exercises/robot-name/RobotNameTest.cs
trackler-2.2.1.174 tracks/csharp/exercises/robot-name/RobotNameTest.cs
trackler-2.2.1.173 tracks/csharp/exercises/robot-name/RobotNameTest.cs
trackler-2.2.1.172 tracks/csharp/exercises/robot-name/RobotNameTest.cs
trackler-2.2.1.171 tracks/csharp/exercises/robot-name/RobotNameTest.cs
trackler-2.2.1.170 tracks/csharp/exercises/robot-name/RobotNameTest.cs
trackler-2.2.1.169 tracks/csharp/exercises/robot-name/RobotNameTest.cs
trackler-2.2.1.167 tracks/csharp/exercises/robot-name/RobotNameTest.cs
trackler-2.2.1.166 tracks/csharp/exercises/robot-name/RobotNameTest.cs
trackler-2.2.1.165 tracks/csharp/exercises/robot-name/RobotNameTest.cs
trackler-2.2.1.164 tracks/csharp/exercises/robot-name/RobotNameTest.cs
trackler-2.2.1.163 tracks/csharp/exercises/robot-name/RobotNameTest.cs
trackler-2.2.1.162 tracks/csharp/exercises/robot-name/RobotNameTest.cs
trackler-2.2.1.161 tracks/csharp/exercises/robot-name/RobotNameTest.cs
trackler-2.2.1.160 tracks/csharp/exercises/robot-name/RobotNameTest.cs