private static void CompulsoryAuctionChoiceAdapterPropertiesWork() { var re = new CompulsoryAuction(); Assert.Null(re.Item); Assert.Null(re.ConstructionYear); re.ConstructionYear = 1900; Assert.Equal(1900, re.Item); Assert.Equal(1900, re.ConstructionYear); re.ConstructionYear = null; Assert.Null(re.ConstructionYear); Assert.True(re.ConstructionYearUnknown); re.ConstructionYearUnknown = true; Assert.IsType <bool>(re.Item); Assert.True((bool)re.Item); Assert.Null(re.ConstructionYear); }
private static void CompulsoryAuctionChoiceAdapterPropertiesWork() { var re = new CompulsoryAuction(); Assert.Null(re.Item); Assert.Null(re.ConstructionYear); re.ConstructionYear = 1900; Assert.Equal(1900, re.Item); Assert.Equal(1900, re.ConstructionYear); re.ConstructionYear = null; Assert.Null(re.ConstructionYear); Assert.True(re.ConstructionYearUnknown); re.ConstructionYearUnknown = true; Assert.IsType<bool>(re.Item); Assert.True((bool)re.Item); Assert.Null(re.ConstructionYear); }