public void GetTest_ReturnDataField() { // arrange int id = 1; string specialties = "perm"; Specialties testSpecialties = new Specialties(specialties, id); // act string result = testSpecialties.GetSpecialties(); // assert Assert.AreEqual(specialties, result); }
public void Find_FindSpecialtyInDatabase_Specialties() { //Arrange Specialties testSpecialty = new Specialties("testName"); testSpecialty.Save(); List <Specialties> testList = new List <Specialties> { testSpecialty }; //Act Specialties resultById = Specialties.FindById(testSpecialty.GetId()); List <Specialties> resultByName = Specialties.FindByName(testSpecialty.GetSpecialties()); //Assert Assert.AreEqual(testSpecialty, resultById); CollectionAssert.AreEqual(testList, resultByName); }