Example #1
0
        public void IsFDCostlyTransport_GivenTcp_ReturnsTrue()
        {
            var maddr = new Multiaddress().Add <TCP>((ushort)1024);

            Assert.That(maddr.IsFDCostlyTransport(), Is.True);
        }
Example #2
0
        public void IsFDCostlyTransport_GivenEmptyAddress_ReturnsFalse()
        {
            var maddr = new Multiaddress();

            Assert.That(maddr.IsFDCostlyTransport(), Is.False);
        }
        public void IsFDCostlyTransport_GivenHTTP_ReturnsFalse()
        {
            var maddr = new Multiaddress().Add <HTTP>();

            Assert.False(maddr.IsFDCostlyTransport());
        }