Example #1
0
        public void ShouldFallBack()
        {
            var    or       = new OrString();
            string expected = "that";
            string result   = or.Get("", "that");

            Assert.Equal(expected, result);
        }
Example #2
0
        public void ShouldFallBack()
        {
            var or = new OrString();
            string expected = "that";
            string result = or.Get("", "that");

            Assert.Equal(expected, result);
        }
Example #3
0
        public static string Or(this string defaultValue, string or)
        {
            var orString = new OrString();

            return(orString.Get(defaultValue, or));
        }