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

            Assert.True(res1.IsOk());

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

            Assert.False(res2.IsOk());
        }