public void FbxObject_GetNameOnly_GetsNameWithoutNamespacePrefix() { // given: var obj = new FbxObject("asdf"); // require: Assert.AreEqual("asdf", obj.GetName()); // then: Assert.AreEqual("asdf", obj.GetNameOnly()); }
public void FbxObject_SetNameSpaceAndGetNameOnly_FirstCharacterIsMissing() { // given: var obj = new FbxObject("asdf"); obj.SetNameSpace("qwer"); // require: Assert.AreEqual("asdf", obj.GetName()); Assert.AreEqual("qwer", obj.GetNameSpaceOnly()); // then: Assert.AreEqual("sdf", obj.GetNameOnly()); }
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()); }