public static object GetInstance(WarningEventArgs obj)
 {
     if (ReferenceEquals(obj, null))
     {
         return(null);
     }
     return(obj._Instance);
 }
        public static object GetInstance(object obj)
        {
            if (ReferenceEquals(obj, null))
            {
                return(null);
            }
            WarningEventArgs casted = obj as WarningEventArgs;

            if (ReferenceEquals(casted, null))
            {
                return(obj);
            }
            return(casted._Instance);
        }
		public static object GetInstance(WarningEventArgs obj)
		{
			if (ReferenceEquals(obj, null))
				return null;
			return obj._Instance;
		}
		//===========================================================================================
		private static void ShouldNotRaiseWarning(object sender, WarningEventArgs arguments)
		{
			Assert.Fail(arguments.Message);
		}