Example #1
0
        public void Enumeration_SetName()
        {
            // Arrange
            var name = new Fixture().Create <string>();
            var sut  = new TestEnumeration(0, name);

            // Act
            // Assert
            Assert.Equal(name, sut.Name);
        }
Example #2
0
        public void Enumeration_SetId()
        {
            // Arrange
            var id  = new Fixture().Create <int>();
            var sut = new TestEnumeration(id, null);

            // Act
            // Assert
            Assert.Equal(id, sut.Id);
        }