Beispiel #1
0
        public void getHashCodeReturnsSameCodeForDifferentInstancesWithSameLexicalValuesAndDataTypes()
        {
            TypedLiteral instance = new TypedLiteral("whizz", "http://example.com/datatype");
            TypedLiteral other    = new TypedLiteral("whizz", "http://example.com/datatype");

            Assert.IsTrue(instance.GetHashCode() == other.GetHashCode());
        }
Beispiel #2
0
        public void getHashCodeReturnsDifferentCodeForDifferentInstancesWithDifferentDataTypes()
        {
            TypedLiteral instance = new TypedLiteral("whizz", "http://example.com/datatype");
            TypedLiteral other    = new TypedLiteral("whizz", "http://example.com/other");

            Assert.IsFalse(instance.GetHashCode() == other.GetHashCode());
        }