Exemplo n.º 1
0
 public void ThrowExceptionWhenValueIsNull()
 {
     Assert.Throws <ArgumentNullException>(() => new Strict <string>(null));
     Assert.Throws <ArgumentNullException>(() => Strict.Of <string>(null));
 }
Exemplo n.º 2
0
        public void KeepStringValue(string val)
        {
            var strict = Strict.Of(val);

            Assert.That(strict.Val, Is.EqualTo(val));
        }