Wpis z mikrobloga

@SuppressWarnings: faktycznie, nie mogłem przewinąć treści błędu

mockParseStrategiesProvider=error CS0103: The name 'mockParseStrategiesProvider' does not exist in the current context
dopeiro gdy zmniejszę czcionkę:
m.Strategies=error CS0103: The name 'm' does not exist in the current context
  • Odpowiedz
mockParseHtmlStrategy.Setup(m => m.TryCompute(mockHtmlDoc, out htmlNode)).Callback(() => htmlNode = HtmlNode.CreateNode("mock

")).Returns(true);
Nie wiem dlaczego, ale podczas testum htmlNode pozostaje nullem, a metoda nadal zwraca false... Najgorsze błędy to wtedy kiedy nie wiesz o co chodzi a debugging nie pomaga.
  • Odpowiedz