示例#1
0
        public void TestPropiedad()
        {
            var target = new PersonaNueva();

            target.Campo     = "valorCampo";
            target.Propiedad = "valorPropiedad";
        }
示例#2
0
        public void TestMethod1()
        {
            //Arrange
            var target = new PersonaNueva();

            target.Nombre = "Alex";
            target.Edad   = 19;
            //Action
            var result = target.calcularAnioNacimiento();

            //Assert
            Assert.AreEqual(2018 - 19, result);
        }
示例#3
0
 public void TestCtor()
 {
     var target = new PersonaNueva("Alex");
 }