Exemplo n.º 1
0
 public void Construct_NullValue_Throws()
 {
     Assert.Throws <ArgumentNullException>(() =>
     {
         Definitely <string> unused = null;
     });
 }
Exemplo n.º 2
0
        public void AccessValue_ValueConstructed_ReturnsValue()
        {
            var val = "Test";
            Definitely <string> underTest = val;

            Assert.Equal(val, (string)underTest);
        }
Exemplo n.º 3
0
        public void AccessValue_DefaultConstructed_Throws()
        {
            var arr = new Definitely <string> [1];

            Assert.Throws <InvalidOperationException>(() =>
            {
                var _ = arr[0].Value;
            });
        }
Exemplo n.º 4
0
 public void Construct_NonNullValue_Constructs()
 {
     Definitely <string> underTest = "Test";
 }