public void CompareTo_null_should_return_expected_result() { var subject = new BsonInt32(0); var result1 = subject.CompareTo((BsonInt32)null); var result2 = subject.CompareTo((BsonValue)null); result1.Should().Be(1); result2.Should().Be(1); }
public void CompareTo_BsonInt32_should_return_expected_result(int int32Value, int otherInt32Value, int expectedResult) { var subject = new BsonInt32(int32Value); var other = new BsonInt32(otherInt32Value); var result1 = subject.CompareTo((BsonInt32)other); var result2 = subject.CompareTo((BsonValue)other); result1.Should().Be(expectedResult); result2.Should().Be(expectedResult); }
public void CompareTo_BsonInt32_should_return_expected_result(int int32Value, int otherInt32Value, int expectedResult) { var subject = new BsonInt32(int32Value); var other = new BsonInt32(otherInt32Value); var result1 = subject.CompareTo((BsonInt32)other); var result2 = subject.CompareTo((BsonValue)other); result1.Should().Be(expectedResult); result2.Should().Be(expectedResult); }
public void CompareTo_BsonInt64_should_return_expected_result(int int32Value, long otherInt64Value, int expectedResult) { var subject = new BsonInt32(int32Value); var other = new BsonInt64(otherInt64Value); var result = subject.CompareTo(other); result.Should().Be(expectedResult); }
public void CompareTo_BsonDouble_should_return_expected_result(int int32Value, double otherDoubleValue, int expectedResult) { var subject = new BsonInt32(int32Value); var other = new BsonDouble(otherDoubleValue); var result = subject.CompareTo(other); result.Should().Be(expectedResult); }
public void CompareTo_BsonInt64_should_return_expected_result(int int32Value, long otherInt64Value, int expectedResult) { var subject = new BsonInt32(int32Value); var other = new BsonInt64(otherInt64Value); var result = subject.CompareTo(other); result.Should().Be(expectedResult); }
public void CompareTo_BsonDouble_should_return_expected_result(int int32Value, double otherDoubleValue, int expectedResult) { var subject = new BsonInt32(int32Value); var other = new BsonDouble(otherDoubleValue); var result = subject.CompareTo(other); result.Should().Be(expectedResult); }
public void CompareTo_null_should_return_expected_result() { var subject = new BsonInt32(0); var result1 = subject.CompareTo((BsonInt32)null); var result2 = subject.CompareTo((BsonValue)null); result1.Should().Be(1); result2.Should().Be(1); }