public void ArObjectPositionContainerInScriptTest() { var arObjectPositionContainerInScript = new ObjectPositionContainerInScript(); Assert.AreEqual((true, new Vector3(1, 1, 0), Quaternion.Euler(1, 1, 0)), arObjectPositionContainerInScript.GetLocalPositionByName("Rafflesia")); Assert.AreEqual((true, new Vector3(1, 1, 1), Quaternion.Euler(1, 1, 0)), arObjectPositionContainerInScript.GetLocalPositionByName("unitylogowhiteonblack")); Assert.AreEqual((true, new Vector3(-1, 1, 0), Quaternion.Euler(1, 1, 0)), arObjectPositionContainerInScript.GetLocalPositionByName("QRCode")); }
public void 失敗するテスト() { var arObjectPositionContainerInScript = new ObjectPositionContainerInScript(); Assert.AreEqual(new Vector3(1, 1, 0), new Vector3(1, 1, 0) - arObjectPositionContainerInScript.GetLocalPositionByName("Rafflesia").Item2); Assert.AreEqual(new Vector3(1, 0, 0), new Vector3(0, 0, 0) - arObjectPositionContainerInScript.GetLocalPositionByName("unitylogowhiteonblack") .Item2); Assert.AreEqual(new Vector3(0, 1, 1), new Vector3(-1, 1, 0) - arObjectPositionContainerInScript.GetLocalPositionByName("QRCode").Item2); }