public void can_get_string_representation_of_Invoiced_order_line() { _sut.Quantity = 500; _sut.Price = (decimal)4.25; _sut.ToString().ShouldContainText(4.25D.ToString()); _sut.ToString().ShouldContainText(500.ToString()); PropertyTester.TestToStringBehavior(_sut); }
public void can_get_string_representation_of_PackageSpecification() { _sut.IndexNumber = 222; _sut.ToString().ShouldContainText(222.ToString()); _sut.Description = "description"; _sut.ToString().ShouldContainText("description"); _sut.Specifications = new PackageSpecification(); _sut.Specifications.Height = 500; _sut.Specifications.Length = 4; _sut.Specifications.Weight = 100; _sut.Specifications.Width = 200; _sut.ToString().ShouldContainText(4.ToString()); _sut.ToString().ShouldContainText(500.ToString()); _sut.ToString().ShouldContainText(100.ToString()); _sut.ToString().ShouldContainText(200.ToString()); PropertyTester.TestToStringBehavior(_sut); }
public void test_properties() { PropertyTester.TestPropertyBehavior(_sut, null); }
public void can_get_string_representation_of_PackageSpecification() { PropertyTester.TestToStringBehavior(_sut); }
public void test_properties() { PropertyTester.TestPropertyBehavior(_sut, new[] { typeof(PackageSpecification) }); }