예제 #1
0
        public void Should_Get_The_Mainnet_values()
        {
            var devnet = new Crypto.Networks.Mainnet();

            Assert.AreEqual(new DateTime(2017, 3, 21, 13, 00, 0, DateTimeKind.Utc), devnet.GetEpoch());
            Assert.AreEqual(0x17, devnet.GetVersion());
            Assert.AreEqual(170, devnet.GetWIF());
        }
예제 #2
0
        public void Should_Set_The_Network()
        {
            var expectedNetwork = new Crypto.Networks.Mainnet();

            Crypto.Configuration.Network.Set(new Crypto.Networks.Mainnet());
            var actualNetwork = Crypto.Configuration.Network.Get();

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