예제 #1
0
    public void MultipleJoinTest()
    {
        var sw = InitTest();

        InnerJoins.MultipleJoin();
        Assert.Equal(
            @"The cat ""Daisy"" shares a house, and the first letter of their name, with ""Duke"".
The cat ""Whiskers"" shares a house, and the first letter of their name, with ""Wiley"".
", sw.ToString());
    }
예제 #2
0
    public void CompositeKeyTest()
    {
        var sw = InitTest();

        InnerJoins.CompositeKey();
        Assert.Equal(
            @"The following people are both employees and students:
Terry Adams
Vernette Price
", sw.ToString());
    }
예제 #3
0
    public void BasicTest()
    {
        var sw = InitTest();

        InnerJoins.Basic();
        Assert.Equal(
            @"""Daisy"" is owned by Magnus
""Barley"" is owned by Terry
""Boots"" is owned by Terry
""Whiskers"" is owned by Charlotte
""Blue Moon"" is owned by Rui
", sw.ToString());
    }
예제 #4
0
    public void InnerGroupJoinTest()
    {
        var sw = InitTest();

        InnerJoins.InnerGroupJoin();
        Assert.Equal(
            @"Inner join using GroupJoin():
Magnus - Daisy
Terry - Barley
Terry - Boots
Terry - Blue Moon
Charlotte - Whiskers

The equivalent operation using Join():
Magnus - Daisy
Terry - Barley
Terry - Boots
Terry - Blue Moon
Charlotte - Whiskers
", sw.ToString());
    }