9 references to Assert
dotnet-svcutil.xmlserializer (9)
Microsoft\Tools\ServiceModel\SvcUtil\Options.cs (4)
75
Tool.
Assert
(validModes != ToolMode.None, "validModes should never be set to None!");
76
Tool.
Assert
(newDefaultMode != ToolMode.None, "newDefaultMode should never be set to None!");
77
Tool.
Assert
((validModes & newDefaultMode) != ToolMode.None, "newDefaultMode must be a validMode!");
78
Tool.
Assert
(IsSingleBit(newDefaultMode), "newDefaultMode must Always represent a single mode!");
Microsoft\Tools\ServiceModel\SvcUtil\OutputModule.cs (2)
36
Tool.
Assert
(!string.IsNullOrEmpty(filepath), "filename must have a valid value");
37
Tool.
Assert
(!string.IsNullOrEmpty(extension), "extension must have a valid value");
Microsoft\Tools\ServiceModel\SvcUtil\ToolConsole.cs (2)
372
Tool.
Assert
(name != null, "Name should never be null");
462
Tool.
Assert
(_stringBuilder != null, "stringBuilder cannot be null");
Microsoft\Tools\ServiceModel\SvcUtil\ToolRuntime.cs (1)
38
Tool.
Assert
(_options.GetToolMode().HasValue, System.SR.Format(System.SR.AmbiguousToolUseage));