public void SetPropertyTest() { TestClassA a = new TestClassA(); a.SetPropertyValue("Name", "B"); Assert.Equal("B", a.Name); Assert.Throws <ArgumentOutOfRangeException>(() => a.SetPropertyValue("name", "b") ); }