tye/test
Christian Kadluba a4cf135c08
Fixed issue #620 (#621)
* Fixed issue #620

* Produce a useful error message if the path of a project file is incorrect in tye.yaml.
* Added a test.

* Fixed test on Linux and OSX.

* Check full exception message in test and fixed test name.

* More deterministic behavior considering directory check and test execution.

Moved directory check one level higher from EnsureMSBuildRegistered() to the caller ReadProjectDetailsAsync(). This means that this code is always executed. In EnsureMSBuildRegistered() it was only executed once per proces because of the static field "registered". The placement of the check after evaluation of the the field "registered" was the reason why the test WrongProjectPathProducesCorrectErrorMessage worked when executed alone but not when any other test that called EnsureMSBuildRegistered() was executed before.

With this change the directory check is always executed now, even if the EnsureMSBuildRegistered() was already executed successfully. But the performance impact should not be significant while the type of generated error message is more deterministic and not dependent on execution order.
2020-08-19 11:10:11 -07:00
..
E2ETest Fixed issue #620 (#621) 2020-08-19 11:10:11 -07:00
Microsoft.Tye.Extensions.Configuration.Tests Revert "Johluo/revert to 3.1 (#592)" (#611) 2020-07-28 18:52:04 -07:00
Test.Infrastructure Revert "Johluo/revert to 3.1 (#592)" (#611) 2020-07-28 18:52:04 -07:00
UnitTests Revert "Johluo/revert to 3.1 (#592)" (#611) 2020-07-28 18:52:04 -07:00
Directory.Build.props Centralize some property and fix Extensions.Config 2020-04-03 15:51:37 -07:00