public void _ConditionalValue_IsConvertedToTheSameInstance_WhenValuePresent() { var myValue = new MyTestClass(); MyTestClass conditionalValue = ConditionalValue.From(new MyTestClass()); (myValue == conditionalValue).Should().BeFalse(); }
public void GetValueOrDefault_ReturnsValue_WhenPresent() { ConditionalValue.From("value").GetValueOrDefault("default").Should().Be("value"); }
public void ConditionalValue_IsConvertedToBoolenTrue_WhenValuePresent() { bool value = ConditionalValue.From("string"); value.Should().BeTrue(); }