Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exam Oreshnikov #16

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions Exam1.Test/Exam1.Test.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>netcoreapp3.0</TargetFramework>

<IsPackable>false</IsPackable>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.2.0" />
<PackageReference Include="xunit" Version="2.4.0" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.0" />
<PackageReference Include="coverlet.collector" Version="1.0.1" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\Exam1\Exam1.csproj" />
</ItemGroup>

</Project>
34 changes: 34 additions & 0 deletions Exam1.Test/LionTest.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
using System;
using Xunit;
using Exam1;

namespace Exam1.Test
{
public class LionTest
{
[Fact]
public void Test1()
{
Lion Myla = new Lion("Африка","Саванны");
string location = Myla .Location;
string boundaries = Myla .Boundaries;
Assert.Equal("Африка", location);
Assert.Equal("Саванны", boundaries);
}
[Fact]
public void Test2()
{
Lion Myla = new Lion("Африка","Саванны");
string info = Myla .Info();
string roam = Myla .Roam();
string eat = Myla .Eat();
string noise = Myla .MakeNoise();
string sleep = Myla .Sleep();
Assert.Equal("место обитания льва - Африка, Саванны", info);
Assert.Equal("животное бродит туда-сюда", roam);
Assert.Equal("Лев поймал антилопу и съел", eat);
Assert.Equal("Лев рычит", noise);
Assert.Equal("животное спит", sleep);
}
}
}
34 changes: 34 additions & 0 deletions Exam1.Test/WolfTest.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
using System;
using Xunit;
using Exam1;

namespace Exam1.Test
{
public class WolfTest
{
[Fact]
public void Test1()
{
Wolf Chacha = new Wolf("Канада","Лес");
string location = Chacha.Location;
string boundaries = Chacha.Boundaries;
Assert.Equal("Канада", location);
Assert.Equal("Лес", boundaries);
}
[Fact]
public void Test2()
{
Wolf Chacha = new Wolf("Канада","Лес");
string info = Chacha.Info();
string roam = Chacha.Roam();
string eat = Chacha.Eat();
string noise = Chacha.MakeNoise();
string sleep = Chacha.Sleep();
Assert.Equal("место обитания волка - Канада, Лес", info);
Assert.Equal("животное бродит туда-сюда", roam);
Assert.Equal("волк поймал зайца и съел", eat);
Assert.Equal("волк воет на луну", noise);
Assert.Equal("животное спит", sleep);
}
}
}
5 changes: 5 additions & 0 deletions Exam1.Test/obj/Exam1.Test.csproj.nuget.cache
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"version": 1,
"dgSpecHash": "4LfMKnkf/yMyhUKPzj47dBI/EgS9e8EC9kU3Cl9hsfHpfzn5LeZaLJ/CrUFon7/KTBMgNr7gUf1gZDpgC7NUdw==",
"success": true
}
76 changes: 76 additions & 0 deletions Exam1.Test/obj/Exam1.Test.csproj.nuget.dgspec.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
{
"format": 1,
"restore": {
"C:\\Users\\O.D.V\\Downloads\\Экзамен ТП Орешников\\exam_147_2020\\Exam1.Test\\Exam1.Test.csproj": {}
},
"projects": {
"C:\\Users\\O.D.V\\Downloads\\Экзамен ТП Орешников\\exam_147_2020\\Exam1.Test\\Exam1.Test.csproj": {
"version": "1.0.0",
"restore": {
"projectUniqueName": "C:\\Users\\O.D.V\\Downloads\\Экзамен ТП Орешников\\exam_147_2020\\Exam1.Test\\Exam1.Test.csproj",
"projectName": "Exam1.Test",
"projectPath": "C:\\Users\\O.D.V\\Downloads\\Экзамен ТП Орешников\\exam_147_2020\\Exam1.Test\\Exam1.Test.csproj",
"packagesPath": "C:\\Users\\O.D.V\\.nuget\\packages\\",
"outputPath": "C:\\Users\\O.D.V\\Downloads\\Экзамен ТП Орешников\\exam_147_2020\\Exam1.Test\\obj\\",
"projectStyle": "PackageReference",
"configFilePaths": [
"C:\\Users\\O.D.V\\AppData\\Roaming\\NuGet\\NuGet.Config"
],
"originalTargetFrameworks": [
"netcoreapp3.0"
],
"sources": {
"https://api.nuget.org/v3/index.json": {}
},
"frameworks": {
"netcoreapp3.0": {
"projectReferences": {}
}
},
"warningProperties": {
"warnAsError": [
"NU1605"
]
}
},
"frameworks": {
"netcoreapp3.0": {
"dependencies": {
"Microsoft.NET.Test.Sdk": {
"target": "Package",
"version": "[16.2.0, )"
},
"coverlet.collector": {
"target": "Package",
"version": "[1.0.1, )"
},
"xunit": {
"target": "Package",
"version": "[2.4.0, )"
},
"xunit.runner.visualstudio": {
"target": "Package",
"version": "[2.4.0, )"
}
},
"imports": [
"net461",
"net462",
"net47",
"net471",
"net472",
"net48"
],
"assetTargetFallback": true,
"warn": true,
"frameworkReferences": {
"Microsoft.NETCore.App": {
"privateAssets": "all"
}
},
"runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\3.0.100\\RuntimeIdentifierGraph.json"
}
}
}
}
}
25 changes: 25 additions & 0 deletions Exam1.Test/obj/Exam1.Test.csproj.nuget.g.props
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
<RestoreSuccess Condition=" '$(RestoreSuccess)' == '' ">True</RestoreSuccess>
<RestoreTool Condition=" '$(RestoreTool)' == '' ">NuGet</RestoreTool>
<ProjectAssetsFile Condition=" '$(ProjectAssetsFile)' == '' ">$(MSBuildThisFileDirectory)project.assets.json</ProjectAssetsFile>
<NuGetPackageRoot Condition=" '$(NuGetPackageRoot)' == '' ">$(UserProfile)\.nuget\packages\</NuGetPackageRoot>
<NuGetPackageFolders Condition=" '$(NuGetPackageFolders)' == '' ">C:\Users\O.D.V\.nuget\packages\</NuGetPackageFolders>
<NuGetProjectStyle Condition=" '$(NuGetProjectStyle)' == '' ">PackageReference</NuGetProjectStyle>
<NuGetToolVersion Condition=" '$(NuGetToolVersion)' == '' ">5.3.0</NuGetToolVersion>
</PropertyGroup>
<PropertyGroup>
<MSBuildAllProjects>$(MSBuildAllProjects);$(MSBuildThisFileFullPath)</MSBuildAllProjects>
</PropertyGroup>
<ImportGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
<Import Project="$(NuGetPackageRoot)microsoft.codecoverage\16.2.0\build\netstandard1.0\Microsoft.CodeCoverage.props" Condition="Exists('$(NuGetPackageRoot)microsoft.codecoverage\16.2.0\build\netstandard1.0\Microsoft.CodeCoverage.props')" />
<Import Project="$(NuGetPackageRoot)microsoft.net.test.sdk\16.2.0\build\netcoreapp1.0\Microsoft.NET.Test.Sdk.props" Condition="Exists('$(NuGetPackageRoot)microsoft.net.test.sdk\16.2.0\build\netcoreapp1.0\Microsoft.NET.Test.Sdk.props')" />
<Import Project="$(NuGetPackageRoot)xunit.runner.visualstudio\2.4.0\build\netcoreapp1.0\xunit.runner.visualstudio.props" Condition="Exists('$(NuGetPackageRoot)xunit.runner.visualstudio\2.4.0\build\netcoreapp1.0\xunit.runner.visualstudio.props')" />
<Import Project="$(NuGetPackageRoot)xunit.core\2.4.0\build\xunit.core.props" Condition="Exists('$(NuGetPackageRoot)xunit.core\2.4.0\build\xunit.core.props')" />
</ImportGroup>
<PropertyGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
<PkgNewtonsoft_Json Condition=" '$(PkgNewtonsoft_Json)' == '' ">C:\Users\O.D.V\.nuget\packages\newtonsoft.json\9.0.1</PkgNewtonsoft_Json>
<Pkgxunit_analyzers Condition=" '$(Pkgxunit_analyzers)' == '' ">C:\Users\O.D.V\.nuget\packages\xunit.analyzers\0.10.0</Pkgxunit_analyzers>
</PropertyGroup>
</Project>
12 changes: 12 additions & 0 deletions Exam1.Test/obj/Exam1.Test.csproj.nuget.g.targets
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<MSBuildAllProjects>$(MSBuildAllProjects);$(MSBuildThisFileFullPath)</MSBuildAllProjects>
</PropertyGroup>
<ImportGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
<Import Project="$(NuGetPackageRoot)microsoft.codecoverage\16.2.0\build\netstandard1.0\Microsoft.CodeCoverage.targets" Condition="Exists('$(NuGetPackageRoot)microsoft.codecoverage\16.2.0\build\netstandard1.0\Microsoft.CodeCoverage.targets')" />
<Import Project="$(NuGetPackageRoot)microsoft.net.test.sdk\16.2.0\build\netcoreapp1.0\Microsoft.NET.Test.Sdk.targets" Condition="Exists('$(NuGetPackageRoot)microsoft.net.test.sdk\16.2.0\build\netcoreapp1.0\Microsoft.NET.Test.Sdk.targets')" />
<Import Project="$(NuGetPackageRoot)xunit.core\2.4.0\build\xunit.core.targets" Condition="Exists('$(NuGetPackageRoot)xunit.core\2.4.0\build\xunit.core.targets')" />
<Import Project="$(NuGetPackageRoot)coverlet.collector\1.0.1\build\netstandard1.0\coverlet.collector.targets" Condition="Exists('$(NuGetPackageRoot)coverlet.collector\1.0.1\build\netstandard1.0\coverlet.collector.targets')" />
</ImportGroup>
</Project>
Loading