private static void TestAlertStatus(byte status, bool ringer, bool vibrate) { TestHelpers.CatchUnexpected(() => { byte[] data = new byte[1]; data[0] = status; CharParser_AlertStatus parser = new (); string result = parser.Parse(data); LogUtils.Net.Log.Info("TestAlertStatus", "TestAlertStatus", result); string expected = string.Format( "Ringer State:{0} Vibrate State:{1}", ringer.ActiveStateStr(), vibrate.ActiveStateStr()); Assert.AreEqual(expected, result, "Parse fail"); Assert.AreEqual(ringer, parser.RingerState, "Ringer"); Assert.AreEqual(vibrate, parser.VibrateState, "Vibrate"); }); }