public void ProperlyCreateDatabaseBehaviorAndSetMessage() { //Arrange var app = new App(); //Act app.setBehavior(new DatabaseBehavior()); app.setMessage("Hello World"); //Assert Assert.IsInstanceOfType(app.getBehavior(), typeof(DatabaseBehavior)); Assert.AreEqual("Hello World", app.getMessage()); }