Example #1
0
        public void Ctor_WithoutValueAndName_InitializesInstance()
        {
            // Act
            var actual = new TestResultExpectation <object>(null, null);

            // Assert
            actual.Value.Suppose().ToBeNull();
            actual.Name.Suppose().ToBeNull();
            actual.Type.Suppose().NotToBeNull();
        }
Example #2
0
        public void Ctor_WithValueAndName_InitializesInstance()
        {
            // Arrange
            var value     = new object();
            var valueName = "any name";

            // Act
            var actual = new TestResultExpectation <object>(value, valueName);

            // Assert
            actual.Value.Suppose().ToBeEqualTo(value);
            actual.Name.Suppose().ToBeEqualTo(valueName);
        }