[TestMethod()]//Check if it trims the state code to first 2 letters. public void TrimCodeTestToCheckIfFirstTwoLettersOfStringAreReturned() { //Arrange string state = "WASHINGTON"; string country = "USA"; //Act var StateResult = AvaTaxProfileAssistantHelper.TrimCode(state); var CountryResult = AvaTaxProfileAssistantHelper.TrimCode(country); //Assert Assert.AreEqual("WA", StateResult, "Incorrect state code returned!!"); Assert.AreEqual("US", CountryResult, "Incorrect country code returned!!"); }