예제 #1
0
    public void A_FetchedDocument_should_be_equal_to_a_different_one()
    {
        var sut   = new FetchedDocument(Encoding.UTF8.GetBytes("foo"));
        var other = new FetchedDocument(Encoding.UTF8.GetBytes("bar"));

        sut.Equals(other).Should().BeFalse();
    }
예제 #2
0
    public void A_FetchedDocument_should_be_equal_to_an_identical_one()
    {
        var sut   = new FetchedDocument(Encoding.UTF8.GetBytes("foo"));
        var other = new FetchedDocument(Encoding.UTF8.GetBytes("foo"));

        sut.Equals(other).Should().BeTrue();
    }
예제 #3
0
    public void An_empty_FetchedDocument_should_be_equal_to_Empty_value()
    {
        var sut = new FetchedDocument(new byte[] {});

        sut.Equals(FetchedDocument.Empty).Should().BeTrue();
    }