Beispiel #1
0
        public void Should_Create_Instance_Of_Sauce()
        {
            const string name      = "Pesto";
            var          sut       = new Sauce(name);
            var          serialize = sut.ShouldSerializePrice();

            Assert.IsInstanceOf <Sauce>(sut);
            Assert.IsNotNull(sut.Id);
            Assert.IsInstanceOf <Guid>(sut.Id);
            Assert.AreEqual(0, sut.Price);
            Assert.AreEqual(name, sut.Name);
            Assert.AreEqual(false, serialize);
        }