示例#1
0
        public void TestCreateNonEmptyNothing()
        {
            var instance = Maybe.CreateNonEmpty("");

            instance.AssertNothing();

            instance = Maybe.CreateNonEmpty(null);
            instance.AssertNothing();

            instance = Maybe.CreateNonEmpty(" ");
            instance.AssertNothing();
        }
示例#2
0
        public void TestCreateNonEmpty()
        {
            var instance = Maybe.CreateNonEmpty("test");

            instance.AssertJust("test");
        }