public void MatchTest_Match() { var a = AVal.AVC("string1"); var b = AVal.AVC("string1"); Assert.IsTrue(AVal.Match(a, b)); }
public void MatchTest_Unmatch() { var a = AVal.AVC("string1"); var b = AVal.AVC("string2"); Assert.IsFalse(AVal.Match(a, b)); }
public void RTMP_ParseURLTest_example() { AVal host, app, playpath; int protocol, port; var res = RTMP.RTMP_ParseURL(EXAMPLE_URL, out protocol, out host, out port, out playpath, out app); Assert.IsTrue(res); Assert.AreEqual(RTMP.RTMP_PROTOCOL_RTMP, protocol); Assert.IsTrue(AVal.Match(AVal.AVC("example.com"), host), "actual:" + host.to_s()); Assert.AreEqual(41935, port); Assert.IsTrue(AVal.Match(AVal.AVC("plypath"), playpath), "actual:" + playpath); Assert.IsTrue(AVal.Match(AVal.AVC("app"), app), "actual:" + app); }
public void MatchTest_Empty() { AVal a = AVal.AVC(string.Empty), b = AVal.AVC(string.Empty); Assert.IsTrue(AVal.Match(a, b)); }