Wenn ich für Unit-Test,System.UriFormatException: Ungültiger URI: Ungültiger Port angegeben. in C#
Ich endete Fehler 'System.UriFormatException: ungültiger URI: ungültiger Port angegeben.' -Code, der Fehler zeigt, ist,
public Dictionary<SensorMode, Uri> ImageSrc = new Dictionary<SensorMode, Uri>()
{
{SensorMode.f, new Uri("pack://application:,,,/Resources/TS.png") },//towards to sensor image
{SensorMode.b, new Uri("pack://application:,,,/Resources/AS.png") },//away from the sensor image
{SensorMode.c, new Uri("pack://application:,,,/Resources/F.png") },//fast moving image
{SensorMode.p, new Uri("pack://application:,,,/Resources/S.png") },//slow moving image
{SensorMode.x, new Uri("pack://application:,,,/Resources/fail.png")}//fail image
};
Kann mir jemand helfen, dieses Problem zu lösen.