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.98 tracks/csharp/exercises/robot-name/RobotNameTest.cs
trackler-2.2.1.97 tracks/csharp/exercises/robot-name/RobotNameTest.cs
trackler-2.2.1.96 tracks/csharp/exercises/robot-name/RobotNameTest.cs
trackler-2.2.1.95 tracks/csharp/exercises/robot-name/RobotNameTest.cs
trackler-2.2.1.94 tracks/csharp/exercises/robot-name/RobotNameTest.cs
trackler-2.2.1.93 tracks/csharp/exercises/robot-name/RobotNameTest.cs
trackler-2.2.1.92 tracks/csharp/exercises/robot-name/RobotNameTest.cs
trackler-2.2.1.91 tracks/csharp/exercises/robot-name/RobotNameTest.cs
trackler-2.2.1.90 tracks/csharp/exercises/robot-name/RobotNameTest.cs
trackler-2.2.1.89 tracks/csharp/exercises/robot-name/RobotNameTest.cs
trackler-2.2.1.88 tracks/csharp/exercises/robot-name/RobotNameTest.cs
trackler-2.2.1.87 tracks/csharp/exercises/robot-name/RobotNameTest.cs
trackler-2.2.1.86 tracks/csharp/exercises/robot-name/RobotNameTest.cs
trackler-2.2.1.85 tracks/csharp/exercises/robot-name/RobotNameTest.cs
trackler-2.2.1.84 tracks/csharp/exercises/robot-name/RobotNameTest.cs
trackler-2.2.1.83 tracks/csharp/exercises/robot-name/RobotNameTest.cs
trackler-2.2.1.82 tracks/csharp/exercises/robot-name/RobotNameTest.cs
trackler-2.2.1.81 tracks/csharp/exercises/robot-name/RobotNameTest.cs
trackler-2.2.1.80 tracks/csharp/exercises/robot-name/RobotNameTest.cs
trackler-2.2.1.79 tracks/csharp/exercises/robot-name/RobotNameTest.cs