public void H48CRegExpTestWithNegativeValuesTest()
 {
     var match = "VREF=2049X=-12Y=-6Z=462ThetaA=205ThetaB=91ThetaC=359 \r";
     H48CFrame frame = new H48CFrame();
     UTF8Encoding encoder = new UTF8Encoding();
     var buffer = encoder.GetBytes(match);
     Assert.IsTrue(frame.IsFrameType(buffer));
 }
 public void H48CRegExpMatchTest()
 {
     string match = "VREF=123X=111Y=12Z=345ThetaA=11ThetaB=33ThetaC=505 \r";
     H48CFrame frame = new H48CFrame();
     UTF8Encoding encoder = new UTF8Encoding();
     var buffer = encoder.GetBytes(match);
     Assert.IsTrue(frame.IsFrameType(buffer));
 }
 public void TestCreateH48CFrameFromString()
 {
     string match = "VREF=123X=111Y=12Z=345ThetaA=11ThetaB=33ThetaC=505 \r";
     UTF8Encoding encoder = new UTF8Encoding();
     var buffer = encoder.GetBytes(match);
     H48CFrame frame = new H48CFrame();
     H48CFrame result = frame.GetFrame(buffer) as H48CFrame;
     Assert.AreEqual(123, result.VRef,"VRef does not match");
     Assert.AreEqual(111, result.X, "X does not match");
     Assert.AreEqual(12, result.Y, "Y does not match");
     Assert.AreEqual(345, result.Z, "Z does not match");
     Assert.AreEqual(11, result.ThetaA, "ThetaA does not match");
     Assert.AreEqual(33, result.ThetaB, "ThetaB does not match");
     Assert.AreEqual(505, result.ThetaC, "ThetaC does not match");
 }