Exemple #1
0
        public void IsErr()
        {
            Result <int, Exception> res1 = new Ok <int, Exception>(1);

            Assert.False(res1.IsErr());

            Result <int, Exception> res2 = new Err <int, Exception>(new Exception("this is test."));

            Assert.True(res2.IsErr());
        }