private void AssertStringFormat(string sModifiers, ModifierFlags eModifiers, CultureInfo culture, string message)
		{
			string actualString = _converter.ConvertToString(null, culture, eModifiers);
			//System.Diagnostics.Trace.WriteLine(actualString);
			Assert.AreEqual(sModifiers, actualString, message + ": converting " + (int) eModifiers + " which is " + eModifiers.ToString());
		}
Beispiel #2
0
        private void AssertStringFormat(string sModifiers, ModifierFlags eModifiers, CultureInfo culture, string message)
        {
            string actualString = _converter.ConvertToString(null, culture, eModifiers);

            //System.Diagnostics.Trace.WriteLine(actualString);
            Assert.AreEqual(sModifiers, actualString, message + ": converting " + (int)eModifiers + " which is " + eModifiers.ToString());
        }
Beispiel #3
0
        private void AssertStringParse(string sModifiers, ModifierFlags eModifiers, CultureInfo culture, string message)
        {
            ModifierFlags actualEnum = (ModifierFlags)_converter.ConvertFromString(null, culture, sModifiers);

            //System.Diagnostics.Trace.WriteLine(actualEnum);
            Assert.AreEqual((int)eModifiers, (int)actualEnum, message + ": converting " + sModifiers + " which is " + actualEnum.ToString());
        }
 /// <summary>
 /// Gets a string describing the object instance.
 /// </summary>
 public override string ToString()
 {
     return(_modifierFlags.ToString());
 }