diff --git a/GIT/App.csproj b/GIT/App.csproj new file mode 100644 index 0000000..2ccf1cc --- /dev/null +++ b/GIT/App.csproj @@ -0,0 +1,6 @@ + + + Exe + netcoreapp3.1 + + \ No newline at end of file diff --git a/GIT/Duck.cs b/GIT/Duck.cs new file mode 100644 index 0000000..5c685c0 --- /dev/null +++ b/GIT/Duck.cs @@ -0,0 +1,36 @@ +using System; + + +namespace Git +{ + interface IFly + { + string Fly(); + } + + interface IQuack + { + string Quack(); + } + + public abstract class Duck : IFly, IQuack + { + public static string swim() + { + return "Swiu"; + } + + public abstract string Display(); + + public string Fly() + { + return "Утка косплеит Falcon X"; + } + + public string Quack() + { + return "Qurack"; + } + } + +} \ No newline at end of file diff --git a/GIT/DuckiTest.cs b/GIT/DuckiTest.cs new file mode 100644 index 0000000..54051de --- /dev/null +++ b/GIT/DuckiTest.cs @@ -0,0 +1,41 @@ +using System; +using Xunit; +using Git; + + +namespace DuckiTest + +{ + public class DuckiTest + { + public void Test1() + { + Duckinator utkonos = new Duckinator(); + string a = Duckinator.swim(); + Assert.Equal("Duckinator всплыл", a); + } + + + public void Test2() + { + Duckinator utkonos = new Duckinator(); + string b = utkonos.Display(); + Assert.Equal("I Duckinator", b); + } + + public void Test3() + { + Duckinator utkonos = new Duckinator(); + string c = utkonos.Fly(); + Assert.Equal("Duckinator пробил луну", c); + } + + public void Test4() + + { + Duckinator utkonos = new Duckinator(); + string d = utkonos.Quack(); + Assert.Equal("Dukinaaaaaaaaaaaaaaaaaaaaaaaaator", d); + } + } +} diff --git a/GIT/DuckiTest.csproj b/GIT/DuckiTest.csproj new file mode 100644 index 0000000..b2fd8b2 --- /dev/null +++ b/GIT/DuckiTest.csproj @@ -0,0 +1,22 @@ + + + + netcoreapp3.1 + + false + + + + + + + + + + + + + + + + diff --git a/GIT/Duckinator.cs b/GIT/Duckinator.cs new file mode 100644 index 0000000..6fbcc81 --- /dev/null +++ b/GIT/Duckinator.cs @@ -0,0 +1,19 @@ +using System; + + +namespace Git +{ + + public class Duckinator : Duck + { + + public Duckinator() + { + } + + public override string Display() + { + return "Duckinator вернулся"; + } + } +} \ No newline at end of file diff --git a/GIT/Git.csproj b/GIT/Git.csproj new file mode 100644 index 0000000..106f08c --- /dev/null +++ b/GIT/Git.csproj @@ -0,0 +1,6 @@ + + + netcoreapp3.1 + false + + \ No newline at end of file diff --git a/GIT/Program.cs b/GIT/Program.cs new file mode 100644 index 0000000..12a9b6d --- /dev/null +++ b/GIT/Program.cs @@ -0,0 +1,16 @@ +using System; + +namespace Git +{ + public class Program + { + public static void Main() + { + Duckinator utkonos = new Duckinator(); + Console.WriteLine(utkonos.Display()); + Console.WriteLine(Duckinator.swim()); + Console.WriteLine(utkonos.Fly()); + Console.WriteLine(utkonos.Quack()); + } + } +} \ No newline at end of file diff --git a/GIT/obj/Debug/netcoreapp3.1/App.AssemblyInfo.cs b/GIT/obj/Debug/netcoreapp3.1/App.AssemblyInfo.cs new file mode 100644 index 0000000..cd82362 --- /dev/null +++ b/GIT/obj/Debug/netcoreapp3.1/App.AssemblyInfo.cs @@ -0,0 +1,23 @@ +//------------------------------------------------------------------------------ +// +// Этот код создан программой. +// Исполняемая версия:4.0.30319.42000 +// +// Изменения в этом файле могут привести к неправильной работе и будут потеряны в случае +// повторной генерации кода. +// +//------------------------------------------------------------------------------ + +using System; +using System.Reflection; + +[assembly: System.Reflection.AssemblyCompanyAttribute("App")] +[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")] +[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")] +[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0")] +[assembly: System.Reflection.AssemblyProductAttribute("App")] +[assembly: System.Reflection.AssemblyTitleAttribute("App")] +[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")] + +// Generated by the MSBuild WriteCodeFragment class. + diff --git a/GIT/obj/Debug/netcoreapp3.1/App.AssemblyInfoInputs.cache b/GIT/obj/Debug/netcoreapp3.1/App.AssemblyInfoInputs.cache new file mode 100644 index 0000000..ac8f3f3 --- /dev/null +++ b/GIT/obj/Debug/netcoreapp3.1/App.AssemblyInfoInputs.cache @@ -0,0 +1 @@ +935fc6b03c2183b74aad9f70355d701aca07a4a5 diff --git a/GIT/obj/Debug/netcoreapp3.1/App.csprojAssemblyReference.cache b/GIT/obj/Debug/netcoreapp3.1/App.csprojAssemblyReference.cache new file mode 100644 index 0000000..caa36e3 Binary files /dev/null and b/GIT/obj/Debug/netcoreapp3.1/App.csprojAssemblyReference.cache differ diff --git a/GIT/obj/Debug/netcoreapp3.1/Git.AssemblyInfo.cs b/GIT/obj/Debug/netcoreapp3.1/Git.AssemblyInfo.cs new file mode 100644 index 0000000..d146e54 --- /dev/null +++ b/GIT/obj/Debug/netcoreapp3.1/Git.AssemblyInfo.cs @@ -0,0 +1,23 @@ +//------------------------------------------------------------------------------ +// +// Этот код создан программой. +// Исполняемая версия:4.0.30319.42000 +// +// Изменения в этом файле могут привести к неправильной работе и будут потеряны в случае +// повторной генерации кода. +// +//------------------------------------------------------------------------------ + +using System; +using System.Reflection; + +[assembly: System.Reflection.AssemblyCompanyAttribute("Git")] +[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")] +[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")] +[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0")] +[assembly: System.Reflection.AssemblyProductAttribute("Git")] +[assembly: System.Reflection.AssemblyTitleAttribute("Git")] +[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")] + +// Generated by the MSBuild WriteCodeFragment class. + diff --git a/GIT/obj/Debug/netcoreapp3.1/Git.AssemblyInfoInputs.cache b/GIT/obj/Debug/netcoreapp3.1/Git.AssemblyInfoInputs.cache new file mode 100644 index 0000000..9baa913 --- /dev/null +++ b/GIT/obj/Debug/netcoreapp3.1/Git.AssemblyInfoInputs.cache @@ -0,0 +1 @@ +1d5013adc3041bcd00ee6d6f10d4ea538b5c1f6a