Пример #1
0
        public void Asset_SameIdentityAs_Test()
        {
            string assetOneId = Guid.NewGuid().ToString();
            string assetTwoId = Guid.NewGuid().ToString();
            string assetOneName = "This is a test name";
            string assetTwoName = "This is another test name";

            Asset assetOne = new Asset(assetOneId, assetOneName);
            Asset assetOneDuplicate = new Asset(assetOneId, assetOneName);
            Asset assetTwo = new Asset(assetTwoId, assetTwoName);

            bool resultOne = assetOne.SameIdentityAs(assetOneDuplicate);
            bool resultTwo = assetOne.SameIdentityAs(assetTwo);

            Assert.IsTrue(resultOne);
            Assert.IsFalse(resultTwo);
        }