Exemple #1
0
        public void ShouldPass_SetProperty_ValidInput()
        {
            var obj = new Testboject();

            obj.SetProperty("Test1", "salam");

            Assert.True((string)obj.GetPropertyValue("Test1") == "salam");
        }
Exemple #2
0
        public void ShouldThrow_InvalidOperationException_SetProperty_NotExistProperty()
        {
            var obj = new Testboject();

            Assert.Throws <InvalidOperationException>(() => obj.SetProperty("Test4", "salam"));
        }