public void Should_Return_The_Same_Configuration() { // Given var settings = new DotNetCoreMSBuildSettings(); // When var result = settings.SetConfiguration(Configuration); // Then Assert.Equal(settings, result); }
private static void DotNetCoreRestore(ICakeContext context, string projectFile, string buildConfiguration) { DotNetCoreMSBuildSettings buildSettings = new DotNetCoreMSBuildSettings(); buildSettings.SetConfiguration(buildConfiguration); DotNetCoreRestoreSettings restoreSettings = new DotNetCoreRestoreSettings { MSBuildSettings = buildSettings }; context.DotNetCoreRestore(projectFile, restoreSettings); }
public void Should_Set_Configuration() { // Given var settings = new DotNetCoreMSBuildSettings(); const string key = "Configuration"; // When settings.SetConfiguration(Configuration); // Then Assert.True(settings.Properties.ContainsKey(key)); Assert.Equal(Configuration, settings.Properties[key].FirstOrDefault()); }