예제 #1
0
    public void ChangeItemNameTest()
    {
        //Arrange
        BaseItem stick = createTestItem();

        // Assert initial name
        Assert.AreEqual(stick.ItemName, "Sample Item");

        // Act
        stick.ChangeName("Changed Item");

        Assert.AreEqual(stick.ItemName, "Changed Item");
    }