private static DependencyComparisonTypeTestDataPoint CreateDependencyComparisonTypeTestDataPointFromEnum(DependencyComparisonTypeId enumId)
        {
            DependencyComparisonType fromFor = new DependencyComparisonType(enumId);

            return(new DependencyComparisonTypeTestDataPoint
            {
                ExpectedString = fromFor.ToString(),
                EnumValue = enumId,
                EnumInt = (Int32)enumId,
                EnumName = Enum.GetName(typeof(DependencyComparisonTypeId), enumId),
                Id = fromFor.Id,
                Name = fromFor.Name,
                ObjectFromFor = fromFor
            });
        }
Exemplo n.º 2
0
 public void ToString_WhenGivenEnumId_ReturnsCorrectString(DependencyComparisonType dependencyComparisonType, String expectedString)
 {
     Assert.Equal(expectedString, dependencyComparisonType.ToString());
 }