This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const optionExtras = { | |
logprobs: true, | |
top_logprobs: 3, | |
}; | |
const result = await client.getChatCompletions( | |
deploymentId, | |
[ | |
{ | |
role: "system", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- task: DotNetCoreCLI@2 | |
displayName: 'Run tests' | |
inputs: | |
command: 'test' | |
arguments: '/p:CollectCoverage=true /p:CoverletOutputFormat=cobertura' | |
projects: '**/*[Tt]ests*.csproj' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: $(Major).$(Minor).$(Year:yy)$(DayOfYear).$(Rev:r) | |
trigger: | |
branches: | |
include: | |
- main | |
paths: | |
include: | |
- src/* | |
- build/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- task: reportgenerator@4 | |
inputs: | |
reports: '$(Build.SourcesDirectory)/**/*.cobertura.xml' | |
targetdir: '$(Build.SourcesDirectory)/CoverageResults' | |
- task: PublishCodeCoverageResults@1 | |
displayName: 'Publish code coverage' | |
inputs: | |
codeCoverageTool: Cobertura | |
summaryFileLocation: '$(Build.SourcesDirectory)/CoverageResults/Cobertura.xml' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- task: DotNetCoreCLI@2 | |
displayName: 'Run unit tests' | |
inputs: | |
command: 'test' | |
arguments: '/p:CollectCoverage=true /p:CoverletOutputFormat=cobertura' | |
projects: '**/*UnitTests*.csproj' | |
testRunTitle: 'Unit Tests' | |
- task: DotNetCoreCLI@2 | |
displayName: 'Run functional tests' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<Project Sdk="Microsoft.NET.Sdk"> | |
<PropertyGroup> | |
<TargetFramework>netcoreapp3.1</TargetFramework> | |
<IsPackable>false</IsPackable> | |
</PropertyGroup> | |
<ItemGroup> | |
<PackageReference Include="coverlet.msbuild" Version="2.9.0"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace MyAppTests | |
{ | |
using System.Threading; | |
using Legerity; | |
using Legerity.Windows; | |
using Legerity.Windows.Elements.Core; | |
using Legerity.Windows.Extensions; | |
using Microsoft.VisualStudio.TestTools.UnitTesting; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace MyAppTests | |
{ | |
using Legerity; | |
using Legerity.Windows; | |
using Microsoft.VisualStudio.TestTools.UnitTesting; | |
public abstract class BaseTest | |
{ | |
[TestInitialize] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private async void OnOpenWindowClicked(object sender, RoutedEventArgs e) | |
{ | |
await WindowHelper.CreateNewWindowForPageAsync(typeof(WindowHelperPageOne)); | |
await WindowHelper.CreateNewWindowForPageAsync(typeof(WindowHelperPageOne), new Size(640, 480)); | |
await WindowHelper.CreateNewWindowForPageAsync(typeof(WindowHelperPageOne), new MainPageViewModel()); | |
await WindowHelper.CreateNewWindowForPageAsync(typeof(WindowHelperPageOne), new MainPageViewModel(), new Size(640, 480)); | |
// Also available with type name string. | |
await WindowHelper.CreateNewWindowForPageAsync("WinUX.Pages.WindowHelperPageOne, WinUX"); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
this.NetworkManager.Start(); |
NewerOlder