public void ToString_NoArguments_ReturnString() { // Arrange // Act string stringRepresentation = _defaultCommand.ToString(); // Assert AssertString.NotNullOrWhiteSpace(stringRepresentation); }
public static bool GetSingleFlag(TypeCommand enums) { MemberInfo memberInfo = typeof(TypeCommand).GetMember(enums.ToString()).FirstOrDefault(); if (memberInfo != null) { SingleAttribute attribute = (SingleAttribute) memberInfo.GetCustomAttributes(typeof(SingleAttribute), false).FirstOrDefault(); if (attribute != null) { return(true); } } return(false); }