Exemplo n.º 1
0
        public void RemoteStrで取得したテキストで改めてLocalAddressを生成して同じかどうかを確認()
        {
            //setUp
            var localAddress = LocalAddress.GetInstance();
            var expected = localAddress.RemoteStr();

            //exercise
            var sut = new LocalAddress(expected);
            var actual = sut.RemoteStr();

            //verify
            Assert.That(actual, Is.EqualTo(expected));
        }
Exemplo n.º 2
0
 //リモートから生成する
 public static void SetInstance(String str)
 {
     _localAddress = new LocalAddress(str);
 }
Exemplo n.º 3
0
 public static LocalAddress GetInstance()
 {
     return(_localAddress ?? (_localAddress = new LocalAddress()));
 }
Exemplo n.º 4
0
 //リモートから生成する
 public static void SetInstance(String str)
 {
     _localAddress = new LocalAddress(str);
 }
Exemplo n.º 5
0
 public static LocalAddress GetInstance()
 {
     return _localAddress ?? (_localAddress = new LocalAddress());
 }