Esempio n. 1
0
        public void IsSecretの違いによるToRegの確認Enableがfalseの場合(bool isSecret, string expected)
        {
            //setUp
            var enable = false; //Enable=FALSE
            var sut    = new OneDat(enable, StrList, IsSecretlList);
            //exercise
            var actual = sut.ToReg(isSecret);

            //verify
            Assert.That(actual, Is.EqualTo(expected));
        }
Esempio n. 2
0
        public void FromRegで初期化してToRegで出力する(int max, String str)
        {
            //setUp
            var sut = new OneDat(true, new String[max], new bool[max]);

            sut.FromReg(str);
            var expected = str;
            //exercise
            var actual = sut.ToReg(false);

            //verify
            Assert.That(actual, Is.EqualTo(expected));
        }