public void IdCurrentUSer() { user.CreateFromPerson(person); Assert.AreEqual(person.Id, user.Id); // Assert.Throws<Exception>(() => new User().CreateFromPerson("")) ; // Assert.Throws<Exception>(() => new Form1().Enter("123", "123")) ; }