public void Desktop_CollectionTest() #endif { var d = new SDKTestDefault(); var arr = d.StringArray; Assert.Equal(3, arr.Count); arr.Add("helloworld"); d.StringArray = arr; Assert.Equal(4, d.StringArray.Count); }
public void Desktop_PropertyTest() #endif { SDKTestDefault simple = new SDKTestDefault(); Assert.Equal(1, simple.Test); Assert.True(simple.ItsTrue); Assert.False(simple.ItsFalse); Assert.Null(simple.BlankDecimal); Assert.Equal(0, simple.BlankInt); Assert.Equal(1, simple.IntOne); Assert.Equal(Decimal.Parse("100.01"), simple.DecimalHundredOhOne); SDKTest tester = new SDKTest("STRINGISHERE"); Assert.Equal(1, tester.ItsOne); Assert.Equal("STRINGISHERE", tester.StringProperty); Assert.Null(tester.AccessorString); Assert.NotNull(tester.ComplexType); Assert.Equal(Decimal.Parse("100.01"), tester.ComplexType .DecimalHundredOhOne); }