示例#1
0
        public static void TestUseCase(Assert assert)
        {
            assert.Expect(4);

            var c  = new Opti <string>();
            var c1 = new Class1();

            assert.Ok(c.Equals(c));
            assert.NotOk(c.Equals(null));

            assert.Ok(c1.Equals(c1));
            assert.NotOk(c1.Equals(null));
        }
示例#2
0
 public bool Equals(Opti <T> obj)
 {
     return(this == obj);
 }