Пример #1
0
        public void Should_Get_The_Devnet_values()
        {
            var devnet = new Crypto.Networks.Devnet();

            Assert.AreEqual(new DateTime(2017, 3, 21, 13, 00, 0, DateTimeKind.Utc), devnet.GetEpoch());
            Assert.AreEqual(0x1e, devnet.GetVersion());
            Assert.AreEqual(170, devnet.GetWIF());
        }
Пример #2
0
        public void Should_Get_The_Default_Network()
        {
            var defaultNetwork  = Crypto.Configuration.Network.Get();
            var expectedNetwork = new Crypto.Networks.Devnet();

            Assert.AreEqual(expectedNetwork.GetEpoch(), defaultNetwork.GetEpoch());
            Assert.AreEqual(expectedNetwork.GetVersion(), defaultNetwork.GetVersion());
            Assert.AreEqual(expectedNetwork.GetWIF(), defaultNetwork.GetWIF());
        }