Exemple #1
0
        public void IsReferencedTest_NonReferenced_ReturnFalse()
        {
            var mockObject = new MockDto("TestValue");
            var serverReferenceResolver = new ServerReferenceResolver();

            Assert.IsFalse(serverReferenceResolver.IsReferenced(this, mockObject));
        }
Exemple #2
0
        public void IsReferencedTest_NonDto_ReturnGuidEmpty()
        {
            var obj = new object();
            var serverReferenceResolver = new ServerReferenceResolver();
            var result = serverReferenceResolver.IsReferenced(this, obj);

            Assert.AreEqual(result, Guid.Empty);
        }
Exemple #3
0
        public void IsReferencedTest_Referenced_ReturnTrue()
        {
            var mockObject = new MockDto("TestValue");
            var serverReferenceResolver = new ServerReferenceResolver();

            serverReferenceResolver.GetReference(this, mockObject);
            Assert.IsTrue(serverReferenceResolver.IsReferenced(this, mockObject));
        }