KyleSchoonover commented on a change in pull request #1569:
URL: https://github.com/apache/avro/pull/1569#discussion_r815194963



##########
File path: lang/csharp/src/apache/test/Schema/ArraySchemaTests.cs
##########
@@ -0,0 +1,37 @@
+using NUnit.Framework;

Review comment:
       Fixed

##########
File path: lang/csharp/src/apache/test/Schema/ArraySchemaTests.cs
##########
@@ -0,0 +1,37 @@
+using NUnit.Framework;
+
+namespace Avro.test
+{
+    [TestFixture]
+    public class ArraySchemaTests
+    {
+        [Test]
+        public void EqualsNullCheck()
+        {
+            string schemaString = "{\"type\": \"array\", \"items\": \"long\"}";
+            ArraySchema nullSchema = null;
+
+            Schema schema = Schema.Parse(schemaString);
+
+            if (schema is ArraySchema arraySchema)
+            {
+                Assert.False(arraySchema.Equals(nullSchema));
+            }
+            else
+            {
+                Assert.Fail("Schema was not an Array Schema");

Review comment:
       Fixed




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to