public void CreateFeedback_Should_ReturnCorrectInstance() { //Arrange var factory = new WimFactory(); var title = "ExampleFeedback"; var rating = 4; var descritpion = "Example Description"; //Act var sut = factory.CreateFeedback(title, descritpion, rating, FeedbackStatus.New); //Assert Assert.IsInstanceOfType(sut, typeof(Feedback)); }
public void Constructor_Should_AssignCorrectRating() { //Arange var factory = new WimFactory(); var title = "ExampleStory"; var descritpion = "Example Description"; var rating = 5; //Act var sut = factory.CreateFeedback(title, descritpion, rating, FeedbackStatus.New); //Assert Assert.AreEqual(sut.Rating, rating); }