public void FbxObject_SetInitialName_SetsInitialNameAndName() { // given: var obj = new FbxObject("asdf"); // require: Assert.AreEqual("asdf", obj.GetInitialName()); Assert.AreEqual("asdf", obj.GetName()); // when: obj.SetInitialName("qwer"); // then: Assert.AreEqual("qwer", obj.GetInitialName()); Assert.AreEqual("qwer", obj.GetName()); }
public void FbxObject_Create_SetsInitialName() { // given: var obj = new FbxObject("asdf"); // require: Assert.AreEqual("asdf", obj.GetName()); // then: Assert.AreEqual("asdf", obj.GetInitialName()); }
public void FbxObject_SetNameSpaceThenSetInitialName_FirstCharacterIsStillMissing() { // given: var obj = new FbxObject("asdf"); obj.SetNameSpace("qwer"); // require: Assert.AreEqual("asdf", obj.GetName()); Assert.AreEqual("qwer", obj.GetNameSpaceOnly()); // when: obj.SetInitialName("zxcv"); // then: Assert.AreEqual("zxcv", obj.GetInitialName()); Assert.AreEqual("zxcv", obj.GetName()); Assert.AreEqual("xcv", obj.GetNameOnly()); }