From 83b112e92a2f2c4e36152bf0023c109aee3ef3bb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Sturesson?= Date: Tue, 9 Jan 2024 10:32:15 +0100 Subject: [PATCH] Fixed broken tests --- .devcontainer/devcontainer.json | 27 +++++++++++++++++++ .../Core.cs | 12 ++++----- 2 files changed, 33 insertions(+), 6 deletions(-) create mode 100644 .devcontainer/devcontainer.json diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json new file mode 100644 index 0000000..da799a0 --- /dev/null +++ b/.devcontainer/devcontainer.json @@ -0,0 +1,27 @@ +// For format details, see https://aka.ms/devcontainer.json. For config options, see the +// README at: https://github.com/devcontainers/templates/tree/main/src/dotnet +{ + "name": "C# (.NET)", + // Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile + "image": "mcr.microsoft.com/devcontainers/dotnet:1-8.0-bookworm" + + // Features to add to the dev container. More info: https://containers.dev/features. + // "features": {}, + + // Use 'forwardPorts' to make a list of ports inside the container available locally. + // "forwardPorts": [5000, 5001], + // "portsAttributes": { + // "5001": { + // "protocol": "https" + // } + // } + + // Use 'postCreateCommand' to run commands after the container is created. + // "postCreateCommand": "dotnet restore", + + // Configure tool-specific properties. + // "customizations": {}, + + // Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root. + // "remoteUser": "root" +} diff --git a/csharp-fundamentals-class-members.Main/Core.cs b/csharp-fundamentals-class-members.Main/Core.cs index 3fcfcb2..2a1132c 100644 --- a/csharp-fundamentals-class-members.Main/Core.cs +++ b/csharp-fundamentals-class-members.Main/Core.cs @@ -20,30 +20,30 @@ public class Core //TODO: 1. Create an integer member named age with a value of 32 - public int age = 33; + public int age = 32; //TODO: 2. Create a String member named firstName with a value of "Jane" - + public string firstName = "Jane"; //TODO: 3. Create a boolean member named isProgrammer with a value of true - + public bool isProgrammer = true; //TODO: 4. Change the value below so that the tests pass. Check the README.md file for instructions on // running and reading tests - public int firstNumber = 109; + public int firstNumber = 9182; //TODO: 5. Change the value below so that the tests pass - public string firstString = "Ruby is to Python what car is to carpet."; + public string firstString = "Java is to Javascript what car is to carpet."; //TODO: 6. Change the visibility below so that the tests pass - private bool isVisible = true; + public bool isVisible = true; } }