public void ThrowExceptionWhenValueIsNull() { Assert.Throws <ArgumentNullException>(() => new Strict <string>(null)); Assert.Throws <ArgumentNullException>(() => Strict.Of <string>(null)); }
public void KeepStringValue(string val) { var strict = Strict.Of(val); Assert.That(strict.Val, Is.EqualTo(val)); }