コード例 #1
0
                public void TestAddStuff()
                {
                    // Yep, this compiles and runs fine.
                    var result = SelfTestingClass.AddStuff(3, 2);

                    Assert.That(result, Is.EqualTo(5));
                }
コード例 #2
0
                public void TestDivideStuff()
                {
                    var typeUnderTest = new SelfTestingClass();

                    // Yep, this also compiles.
                    var result = typeUnderTest.DivideStuff(10, 2);

                    Assert.That(result, Is.EqualTo(5));
                }
コード例 #3
0
                public void TestDivideStuff()
                {
                    var typeUnderTest = new SelfTestingClass();

                    // Yep, this also compiles.
                    var result = typeUnderTest.DivideStuff(10, 2);
                    Assert.That(result, Is.EqualTo(5));
                }