Esempio n. 1
0
 private void textBox1_TextChanged(object sender, EventArgs e)
 {
     if (textBox1.Text.Length == 9)
     {
         simple.Process(textBox1.Text);
         label1.Text = simple.LastDigit;
     }
 }
        public void JazminaSimple()
        {
            var sut = new PersonnummerDigitFinderSimple();

            sut.Process("711207922");
            var expected = "8";

            Assert.AreEqual(expected, sut.LastDigit);
        }
        public void MattiasSimple()
        {
            var sut = new PersonnummerDigitFinderSimple();

            sut.Process("710405785");
            var expected = "1";

            Assert.AreEqual(expected, sut.LastDigit);
        }