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

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