Esempio n. 1
0
    public void FailTest1()
    {
        string actual   = SayHello.WriteInput("Ivan!");
        string expected = "Peter is not Ivan!";

        Assert.AreEqual(expected, actual);
    }
Esempio n. 2
0
    public void SuccessfulTest1()
    {
        string actual   = SayHello.WriteInput("Ivan");
        string expected = "Hello, Ivan!";

        Assert.AreEqual(expected, actual);
    }
Esempio n. 3
0
    public void SuccessfulTest2()
    {
        string actual   = SayHello.WriteInput("Peter");
        string expected = "Hello, Peter!";

        Assert.AreEqual(expected, actual);
    }