From 9534580c5edb948e7bb8715b40c0e09c84e1aa2f Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=D0=91=D0=B0=D0=B3=D0=BB=D0=B8=D0=B9=20=D0=90=D0=BD=D1=82?=
 =?UTF-8?q?=D0=BE=D0=BD=20=D0=9F=D0=B0=D0=B2=D0=BB=D0=BE=D0=B2=D0=B8=D1=87?=
 <bagliy_ap@studzone.local>
Date: Tue, 10 Sep 2019 12:56:22 +0300
Subject: [PATCH] FIX: ...,

---
 NunitReportParser/Program.cs | 2 +-
 grades/Grades.json           | 8 ++++----
 2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/NunitReportParser/Program.cs b/NunitReportParser/Program.cs
index a7ae161..85289d5 100644
--- a/NunitReportParser/Program.cs
+++ b/NunitReportParser/Program.cs
@@ -113,7 +113,7 @@ namespace NunitReport
                     {
                         double maxGrade = (double) task["tests"][caseName]["grade"];
                         int subModuleNumber = (int) task["tests"][caseName]["subModuleNumber"];
-                        if (testcase.Attributes["result"].Value == "Success")
+                        if (testcase.Attributes["result"].Value == "Passed" || testcase.Attributes["result"].Value == "Success")
                         {
                             if (!countedGrades.ContainsKey(subModuleNumber))
                             {
diff --git a/grades/Grades.json b/grades/Grades.json
index b619ec1..ee51930 100644
--- a/grades/Grades.json
+++ b/grades/Grades.json
@@ -214,7 +214,7 @@
             },
          }
       },
-      { "name": "TestGeneratedLexer",
+      { "namespace": "TestGeneratedLexer",
         "tests": {
            "TestIdCount":  { 
                 "grade": 1.5,
@@ -301,7 +301,7 @@
             }
         }
       },
-      { "name": "TestASTParser",
+      { "namespace": "TestASTParser",
         "tests": {
            "TestWhile":  { 
                 "grade": 2,
@@ -333,7 +333,7 @@
             }
         }
       },
-      { "name": "TestCodeGenerator",
+      { "namespace": "TestCodeGenerator",
         "tests": {
            "SmokeTest":  { 
                 "grade": 0,
@@ -361,7 +361,7 @@
             },
         }
       },
-      { "name": "TestVisitors",
+      { "namespace": "TestVisitors",
         "tests": {
            "NoLoopTest":  { 
                 "grade": 0.5,
-- 
GitLab