Beispiel #1
0
 public void nunit_AttributeTest_NoSuchMethod()
 {
     Assert.Throws <ArgumentException>(() =>
                                       MonkeyTestCaseSource.GetData(typeof(AttributeTests), "IAmANonExistentMethod", true));
 }
Beispiel #2
0
        public void nunit_AttributeTest()
        {
            var datasets = MonkeyTestCaseSource.GetData(typeof(AttributeTests), nameof(GuineaPigMethod), true);

            Assert.Equal(40, datasets.Count());
        }