Beispiel #1
0
    public void TraditionalTest()
    {
        var person = ClassBeingTested.FindPerson();

        Assert.Equal(new("ebced679-45d3-4653-8791-3d969c4a986c"), person.Id);
        Assert.Equal(Title.Mr, person.Title);
        Assert.Equal("John", person.GivenNames);
        Assert.Equal("Smith", person.FamilyName);
        Assert.Equal("Jill", person.Spouse);
        Assert.Equal(2, person.Children.Count);
        Assert.Equal("Sam", person.Children[0]);
        Assert.Equal("Mary", person.Children[1]);
        Assert.Equal("4 Puddle Lane", person.Address.Street);
        Assert.Equal("USA", person.Address.Country);
    }
Beispiel #2
0
    public Task Test()
    {
        var person = ClassBeingTested.FindPerson();

        return(Verifier.Verify(person));
    }
Beispiel #3
0
    public Task Simple()
    {
        var person = ClassBeingTested.FindPerson();

        return(Verify(person));
    }