示例#1
0
        public void VerifyImplicitConversion()
        {
            string x = ImmutableString.Create("FOO");


            Assert.AreEqual("FOO", x);
        }
示例#2
0
        public void TestCreateCustomer()
        {
            var sut = new ImmutableCustomer()
            {
                FirstName = "John"
            };

            Assert.IsTrue(sut.FirstName == "John");

            sut.FirstName = ImmutableString.Create("JP");

            Assert.AreEqual("John", sut.FirstName.Value);
        }