troubleshooting Question

VS2019 error on MacBook

Avatar of tancat
tancatFlag for United States of America asked on
* unit testing* VS2019Mac OS X
1 Comment1 Solution73 ViewsLast Modified:
My background is Oracle development but I'm learning C#/.NET - very brand new.  I'm going through a tutorial and am getting an error message.  I'm using a MacBookPro (to which I am also new), VS2019 Free/Community(?) version, and trying to run some tests using "MSTest Project".  I got the same error using "xUnit Test Project".  Please forgive if I'm using the wrong terminology.  

My tiny little project builds with no errors.  I'm using 'Run All' under Unit Tests to run the tests.  When testing a static method, the test runs fine.  However, when testing a property, I get a pop-up box that starts with "dotnet quit unexpectedly" and includes a whole bunch (like pages and pages) of information about the error that might make sense to someone.  I have not found any answers on google that involve intermittent causes (usually it's on building or running after an upgrade or something like that).  

Here are my two tests:
     [TestMethod]
        public void FullNameTestValid()
        {
            //--Arrange
            Customer customer = new Customer
            {
                FirstName = "Bilbo",
                LastName = "Baggins"
            };
            string expected = "Baggins, Bilbo";

            //--Act
            string actual = customer.FullName;

            //--Assert
            Assert.AreEqual(expected, actual);
        }
        [TestMethod]
        public void StaticTest()
        {
            //--Arrange
            var c1 = new Customer();
            c1.FirstName = "Bilbo";
            Customer.InstanceCount += 1;

            var c2 = new Customer();
            c2.FirstName = "Frodo";
            Customer.InstanceCount += 1;

            var c3 = new Customer();
            c3.FirstName = "Rosie";
            Customer.InstanceCount += 1;

            //--Act

            //--Assert
            Assert.AreEqual(3, Customer.InstanceCount);

        }
 

As soon as I figure out how to create a text document on a Mac, I will attach the contents of the error message.  Besides the error message, please let me know what additional information is needed to investigate this problem.  

Thank you!
VS2019_MacBook_error_msg.rtf
ASKER CERTIFIED SOLUTION
tancat
Oracle Developer

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 1 Comment.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 1 Comment.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros