Exemplo n.º 1
0
            public void WhenHasNoEncryptProperties_ThenReturnsFalse()
            {
                var sut = TestNoAttributes.Create();

                var result = sut.IsSensitive();

                Assert.That(result, Is.False);
            }
            public void WhenTypeHasNoAttributes_ThenDontEncryptProperties()
            {
                var obj = TestNoAttributes.Create();

                _sut.EncryptProperties(obj);

                Assert.That(obj.Name, Is.EqualTo("John"));
                Assert.That(obj.Age, Is.EqualTo(50));
            }