Beispiel #1
0
        public void LoadMethodCategories()
        {
            HasCategories fixture = new HasCategories();

            NUnit.Core.TestCase testCase = TestCaseBuilder.Make(fixture, "ATest");
            Assert.IsNotNull(testCase);
            Assert.IsNotNull(testCase.Categories);
            Assert.AreEqual(2, testCase.Categories.Count);
        }
Beispiel #2
0
 public override int GetHashCode()
 {
     if (Id >= 0)
     {
         return(Id.GetHashCode());
     }
     unchecked
     {
         var hashCode = Id.GetHashCode();
         hashCode = (hashCode * 397) ^ Name.GetHashCode();
         hashCode = (hashCode * 397) ^ Description.GetHashCode();
         hashCode = (hashCode * 397) ^ AuctionID.GetHashCode();
         hashCode = (hashCode * 397) ^ OwnerID.GetHashCode();
         hashCode = (hashCode * 397) ^ HasCategories.GetHashCode();
         return(hashCode);
     }
 }