コード例 #1
0
ファイル: ResultTest.cs プロジェクト: setochi/Rusty
        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());
        }