Exemple #1
0
        public void Comparison_GivenTwoEqualInt32_WhenComparing_TheSemanticComparison_ShouldBeZero()
        {
            var first  = new TrivialInt32SemanticType(1);
            var second = new TrivialInt32SemanticType(1);

            first.Should().Be(second);
        }
Exemple #2
0
        public void GivenOneInt32SemanticType_WhenCheckingForBeingLower_ThenTheExpression_ShouldBeInvocable()
        {
            var first      = new TrivialInt32SemanticType(1);
            var second     = new TrivialInt32SemanticType(2);
            var comparison = first < second;

            comparison.Should().BeTrue();
        }
Exemple #3
0
        public void GivenOneInt32SemanticType_WhenInvokingToString_ThenTheToStringMethodOfTheActualValue_ShouldBeInvoked()
        {
            var cut = new TrivialInt32SemanticType(1337);

            cut.ToString().Should().Be("1337");
        }