예제 #1
0
        public void SetPropertyTest()
        {
            TestClassA a = new TestClassA();

            a.SetPropertyValue("Name", "B");

            Assert.Equal("B", a.Name);

            Assert.Throws <ArgumentOutOfRangeException>(() =>
                                                        a.SetPropertyValue("name", "b")
                                                        );
        }