Beispiel #1
0
        public void TestAssignIfNotNull()
        {
            string value = Tester.RandomGenerator.RandomString(30);

            Assert.AreEqual(value, Optional <string> .AssignIfNotNull(value));
            Assert.AreEqual(Optional <string> .Unassigned, Optional <string> .AssignIfNotNull(null));
        }