public void Input_Initialization() { //Test the base input with everything assigned MyInput input = new MyInput { name = "TestInput", axisName = "Horizontal" }; input.UpdateInput(); Debug.Assert(input.GetValue == 0); Debug.Assert(input.PressedThisFrame()); //Test the base input without assigning an axis MyInput input2 = new MyInput { name = "Horizontal" }; Debug.Assert(input2.axisName == "NULL"); input2.UpdateInput(); Debug.Assert(input2.GetValue == 0); Debug.Assert(input2.PressedThisFrame()); }